package com.ssm.sample.facade.facades;


/**
 * 
 * 333
 */
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ssm.sample.facade.base.BaseFacade;
import com.ssm.sample.service.services.Services;
import com.ssm.sample.service.services.YXQServices;
import com.ssm.sample.util.PageData;
@Service("YXQFacades")
public class YXQFacades extends BaseFacade
{
	//2
  @Autowired
  private YXQServices yxqservices;//生成对象
  
  /**
   * 查询员工的全部信息
   * @param pd
   * @return
   */
  public List<PageData> selectAll(PageData pd)
  {
    List<PageData> list = yxqservices.selectAll(pd);
    return list;
  }
  
  /**
   * 查询单个员工的信息
   * @param pd
   * @return
   */
	public PageData selectOneById(String selectID) {
		return yxqservices.selectOneById(selectID);
	}
	public PageData selectOneByName(String selectName) {
		return yxqservices.selectOneByName(selectName);
	}
	/**
	 * 删除单个雇员
	 * 
	 * @param id
	 * @return
	 */

	public boolean deleteMemberById(String pd) {
		return yxqservices.deleteMemberById(pd);
	}
	
	
  /**
   * 添加一个员工的信息
   * @param pd
   * @return
   */
	public boolean insertOneById(PageData pd) {
		return yxqservices.insertOneById(pd);
	}
  

	/**
	 * 更新单个雇员的基本信息
	 * 
	 * @param pd
	 * @return
	 */
	public boolean updateOneById(PageData pd) {
		return yxqservices.updateOneById(pd);
	}	
}
